package com.gopay.common.domain.cbrmb;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Version;

import com.gopay.common.domain.BaseEntity;

/**
 * 
 * @author gd.cui
 * 
 *         每次报盘和付款日志信息表
 *
 */
@Entity
@Table(name = "CB_RMB_TRAN_ASSIST_DTL_LOG")
public class CbRmbTranAssistDtlLog extends BaseEntity {
	private static final long serialVersionUID = 1L;
	@Id
	@SequenceGenerator(name = "CB_RMB_TRAN_ASSIST_DTL_LOG_SQ", sequenceName = "CB_RMB_TRAN_ASSIST_DTL_LOG_SQ")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CB_RMB_TRAN_ASSIST_DTL_LOG_SQ")
	@Column(name = "CB_RMB_DTL_LOG_SQ", unique = true, nullable = false)
	private Integer cbRmbDtlLogSq;
	/**
	 * 国付宝订单号
	 */
	@Column(name = "GOPAY_ORDER_ID")
	private String gopayOrderId;
    /**
     * 数据信息头 id cbbankordermessagerel orderMessageId
     */
	 @Column(name = "MESSAGE_ID")
    private int messageId;
	/**
	 * 类型：0:报盘，1:回盘，2:付款
	 */
	@Column(name = "TRAN_TYPE")
	private String tranType;
	/**
	 * 创建时间
	 */
	@Column(name = "CREATE_TIME")
	private Date createTime;

	/**
	 * 最后更新时间
	 */
	@Column(name = "LAST_UPDATE_TIME")
	private Date lastUpdateTime;

	/**
	 * 版本
	 */
	@Version
	@Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
	private int version;

	/**
	 * 返回码
	 */
	@Column(name = "RETURN_CODE")
	private String returnCode;

	/**
	 * 返回码说明
	 */
	@Column(name = "RETURN_INFO")
	private String returnInfo;

	public Integer getCbRmbDtlLogSq() {
		return cbRmbDtlLogSq;
	}

	public void setCbRmbDtlLogSq(Integer cbRmbDtlLogSq) {
		this.cbRmbDtlLogSq = cbRmbDtlLogSq;
	}

	public String getGopayOrderId() {
		return gopayOrderId;
	}

	public void setGopayOrderId(String gopayOrderId) {
		this.gopayOrderId = gopayOrderId;
	}

	public String getTranType() {
		return tranType;
	}

	public void setTranType(String tranType) {
		this.tranType = tranType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}

	public String getReturnInfo() {
		return returnInfo;
	}

	public void setReturnInfo(String returnInfo) {
		this.returnInfo = returnInfo;
	}

	public int getMessageId() {
		return messageId;
	}

	public void setMessageId(int messageId) {
		this.messageId = messageId;
	}
}
